WooCommerce\PayPalCommerce\Button\Helper\Context A

Total Complexity 70
Dependencies 5
Dependents 9
Total lines 302
Lines of code 189
Logical lines of code 127
Comment lines 93
Methods 15
Properties 2

Methods 15

Method Rating Maintainability Complexity Lines of code
context()
A
46 16 40
is_paypal_continuation()
A
50 12 29
init_context()
A
52 8 25
location()
S
61 5 13
find_classic_shortcode_block()
S
61 4 13
is_wc_settings_payments_tab()
S
64 4 8
is_checkout()
S
67 3 9
is_cart()
S
67 3 9
is_add_payment_method_page()
S
71 3 5
is_block_editor()
S
68 3 7
is_checkout_ajax()
S
68 2 7
is_cart_ajax()
S
68 2 7
wc_ajax_endpoint_name()
S
69 2 7
is_subscription_change_payment_method_page()
S
70 2 6
__construct()
S
77 1 4